import hashlib

def get_password_hash(password: str) -> str:
    return hashlib.md5(password.encode()).hexdigest()
def verify_password(plain_password: str, hashed_password: str) -> bool:
    """验证密码是否匹配"""
    return get_password_hash(plain_password) == hashed_password